package co.gov.medellin.ssti.sub.model.service.impl;

import java.util.Collection;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import co.gov.medellin.ssti.sub.model.dao.ReporteTotalBeneficiariosDAO;
import co.gov.medellin.ssti.sub.model.dao.exception.DAOException;
import co.gov.medellin.ssti.sub.model.service.ReporteTotalBeneficiariosService;
import co.gov.medellin.ssti.sub.model.vo.CondicionConsultaVO;
import co.gov.medellin.ssti.sub.model.vo.RepDetBeneficiarioVO;
import co.gov.medellin.ssti.sub.model.vo.ReporteTotalBeneficiosOtorVO;

@Service
public class ReporteTotalBeneficiariosServiceImpl implements
		ReporteTotalBeneficiariosService {
	@Autowired
	ReporteTotalBeneficiariosDAO reporteTotalBeneficiariosDAOImpl2;

	public Collection<ReporteTotalBeneficiosOtorVO> findBeneficiarios(
			RepDetBeneficiarioVO criteria,
			Collection<CondicionConsultaVO> filtros) {
		try {
			return reporteTotalBeneficiariosDAOImpl2.findBeneficiarios(
					criteria, filtros);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

	public RepDetBeneficiarioVO findFilters(
			RepDetBeneficiarioVO repDetBeneficiarioVO) {
		try {
			return reporteTotalBeneficiariosDAOImpl2
					.findFilters(repDetBeneficiarioVO);
		} catch (Exception e) {
			throw new DAOException(e);
		}
	}

}
